const ProgramAbi = require("./programAbi");

const config = require("./config");

let program = new ProgramAbi(config.nodeUrl);

const test_init = async ()=> {
    await program.initialize();
    //4miQTSyQ3WsvGzCvZPxP7FZm4U8LwoMREz52JS32vkNJXc7qE2ACHD7tiLMHxq7qyrfbTPVwx6LBmu43W5yx6HmY

    /*
    * [
  "Program 6XSJejbg4Q8gWNM1NxgWduKeBu4os9HA4DBBLVfB4v7L invoke [1]",
  "Program log: Instruction: Initialize",
  "Program log: Greetings from: 6XSJejbg4Q8gWNM1NxgWduKeBu4os9HA4DBBLVfB4v7L",
  "Program log: token1: Uint(123456)",
  "Program log: token2: Address(0x8e7fbb49f436d0e8a50c02f631e729a57a9a0aca)",
  "Program log: token3: Bytes([1, 2, 3, 4, 5])",
  "Program log: encode_info: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 226, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 127, 187, 73, 244, 54, 208, 232, 165, 12, 2, 246, 49, 231, 41, 165, 122, 154, 10, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]",
  "Program 6XSJejbg4Q8gWNM1NxgWduKeBu4os9HA4DBBLVfB4v7L consumed 57046 of 200000 compute units",
  "Program 6XSJejbg4Q8gWNM1NxgWduKeBu4os9HA4DBBLVfB4v7L success"
]
    *
    *
    * */
}

test_init();